package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;


import javax.sql.DataSource;

@SpringBootApplication
public class Javav15webApplication {

    public static void main(String[] args) {
        SpringApplication.run(Javav15webApplication.class, args);
        System.out.println("server  start !");
    }

    // day09 编程题需要打开 以下注释
   /* @Bean
    public DataSource dataSource(){
        DriverManagerDataSource dataSource = new DriverManagerDataSource();
        dataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        dataSource.setPassword("root");
        dataSource.setUsername("root");
        dataSource.setUrl("jdbc:mysql://localhost:3306/test?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false");
        return dataSource;
    }*/

}
